package com.cn.wanxi.service;

import com.cn.wanxi.dao.TitleDao;
import com.cn.wanxi.model.TitleModel;

/**
 * 服务逻辑层 逻辑代码
 */
public class TitleService {
    public TitleModel getTitleModel() {
        TitleDao titleDao = new TitleDao();
        TitleModel titleModel = new TitleModel();
        titleModel.setNewsTitle(titleDao.getNewsTitle());
        titleModel.setProducTitle(titleDao.getProducTitle());

        return titleModel;
    }
}
